+2004-07-05 Lorenzo Gil Sanchez <lgs@sicem.biz>
+
+ * gtk/gtklayout.c (gtk_layout_add): added a default method for the add
+ virtual method of GtkContainer.
+ (gtk_layout_class_init): assign gtk_layout_add to the 'add' virtual
+ method slot of the container class.
+
2004-07-05 Anders Carlsson <andersca@gnome.org>
* gtk/gtkiconview.c: (gtk_icon_view_set_markup_column):
+2004-07-05 Lorenzo Gil Sanchez <lgs@sicem.biz>
+
+ * gtk/gtklayout.c (gtk_layout_add): added a default method for the add
+ virtual method of GtkContainer.
+ (gtk_layout_class_init): assign gtk_layout_add to the 'add' virtual
+ method slot of the container class.
+
2004-07-05 Anders Carlsson <andersca@gnome.org>
* gtk/gtkiconview.c: (gtk_icon_view_set_markup_column):
+2004-07-05 Lorenzo Gil Sanchez <lgs@sicem.biz>
+
+ * gtk/gtklayout.c (gtk_layout_add): added a default method for the add
+ virtual method of GtkContainer.
+ (gtk_layout_class_init): assign gtk_layout_add to the 'add' virtual
+ method slot of the container class.
+
2004-07-05 Anders Carlsson <andersca@gnome.org>
* gtk/gtkiconview.c: (gtk_icon_view_set_markup_column):
+2004-07-05 Lorenzo Gil Sanchez <lgs@sicem.biz>
+
+ * gtk/gtklayout.c (gtk_layout_add): added a default method for the add
+ virtual method of GtkContainer.
+ (gtk_layout_class_init): assign gtk_layout_add to the 'add' virtual
+ method slot of the container class.
+
2004-07-05 Anders Carlsson <andersca@gnome.org>
* gtk/gtkiconview.c: (gtk_icon_view_set_markup_column):
GtkAllocation *allocation);
static gint gtk_layout_expose (GtkWidget *widget,
GdkEventExpose *event);
+static void gtk_layout_add (GtkContainer *container,
+ GtkWidget *widget);
static void gtk_layout_remove (GtkContainer *container,
GtkWidget *widget);
static void gtk_layout_forall (GtkContainer *container,
GtkWidget *widget;
g_return_if_fail (GTK_IS_LAYOUT (layout));
-
+
widget = GTK_WIDGET (layout);
g_object_freeze_notify (G_OBJECT (layout));
widget_class->expose_event = gtk_layout_expose;
widget_class->style_set = gtk_layout_style_set;
+ container_class->add = gtk_layout_add;
container_class->remove = gtk_layout_remove;
container_class->forall = gtk_layout_forall;
return FALSE;
}
-/* Container method
+/* Container methods
*/
+static void
+gtk_layout_add (GtkContainer *container,
+ GtkWidget *widget)
+{
+ gtk_layout_put (GTK_LAYOUT (container), widget, 0, 0);
+}
+
static void
gtk_layout_remove (GtkContainer *container,
GtkWidget *widget)